package com.smart.car.auth.fegin;

import com.smart.car.common.res.bean.ResponseResult;
import com.smart.car.member.entity.MemberUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
/**
 * 远程调用用户微服务，校验账户信息
 * @author: zoutao
 * @date: 2021-04-30
 */
@FeignClient(value = "smartcar-member")
public interface MemberClient {
    @PostMapping("member/query")
    public ResponseResult<MemberUser> queryUser(@RequestParam("username")String username,
                                                @RequestParam("password")String password);
}
